package com.wave.system.domain.bo;

import com.wave.common.core.domain.BaseEntity;
import com.wave.common.core.validate.AddGroup;
import com.wave.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 工装板线体业务对象 sys_tool_board_line
 *
 * @author wave
 * @date 2024-10-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysToolBoardLineBo extends BaseEntity {

    private static final long serialVersionUID = 6370098392605211124L;
    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 线体节点号
     */
    @NotBlank(message = "线体节点号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lineNode;

    /**
     * 产品SN号
     */
    @NotBlank(message = "产品SN号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productSn;

    /**
     * 目标节点1
     */
    @NotBlank(message = "目标节点1不能为空", groups = { AddGroup.class, EditGroup.class })
    private String targetNode1;

    /**
     * 目标节点2
     */
    @NotBlank(message = "目标节点2不能为空", groups = { AddGroup.class, EditGroup.class })
    private String targetNode2;


}
